import request from '@/utils/request'

// 查询发运单列表
export function listInfo(query) {
  return request({
    url: '/yard/WaybillInfo/homePage/list',
    method: 'get',
    params: query
  })
}

// 查询发运单详细
export function getInfo(id) {
  return request({
    url: '/system/info/' + id,
    method: 'get'
  })
}

// 新增发运单
export function addInfo(data) {
  return request({
    url: '/system/info',
    method: 'post',
    data: data
  })
}

// 修改发运单
export function updateInfo(data) {
  return request({
    url: '/system/info',
    method: 'put',
    data: data
  })
}

// 删除发运单
export function delInfo(id) {
  return request({
    url: '/system/info/' + id,
    method: 'delete'
  })
}
// 审核
export function trunToExamine(data) {
  return request({
    url: '/yard/WaybillInfo/toExamine',
    method: 'post',
    data:data
  })
}

// 打印列表
export function mimeographList(id) {
  return request({
    url: '/yard/WaybillInfo/'+id,
    method: 'get',
  })
}


// 打印状态
export function printWaybill(data) {
  return request({
    url: '/yard/WaybillInfo/printWaybill',
    method: 'post',
    data:data,
  })
}




